package org.example.service;

import io.lettuce.core.dynamic.annotation.Param;
import org.example.domain.dto.ErpDepotItemDTO;
import org.example.domain.po.ErpDepotItem;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.domain.po.R;
import org.example.domain.vo.ErpDepotItemVO;

import java.util.List;

/**
 * @author 24059
 * @description 针对表【erp_depot_item(单据子表)】的数据库操作Service
 * @createDate 2024-10-18 15:32:31
 */
public interface ErpDepotItemService extends IService<ErpDepotItem> {
    int insert(ErpDepotItem erpDepotItem);
    List<ErpDepotItemVO> look(Integer id);
    int insert(ErpDepotItemDTO erpDepotItem);
    int updateDepotItem(@Param("erpDepotItem")ErpDepotItemDTO erpDepotItem, @Param("headerId") Long headerId);
    List<ErpDepotItem> selectByPrimaryKey(@Param("headerId") Long headerId);

    //public int insert(ErpDepotItem erpDepotItem);
    Long lookByHeaderherdId(@Param("headerId") Long headerId);
    Long lookByHeaderlinkId(@Param("headerId") List<Long> headerId);
    List<ErpDepotItem>lookByitemid(@Param("headerId") Long headerId);
    List<Long> lookByitemidnumvber(@Param("number") String number);

    int insertdepot(ErpDepotItemDTO erpDepotItem);


    List<ErpDepotItemVO> findById(Integer id, Long tenantId);


    boolean deleteItem(Long headerId);


    List<ErpDepotItemVO> findItems(Long headerId);
    List<ErpDepotItemVO> findItem(Long headerId);
}
